import request from '@/utils/request'

// 查询器械信息列表
export function listDevicemanage(query) {
  return request({
    url: '/manage/devicemanage/list',
    method: 'get',
    params: query
  })
}

// 查询器械信息详细
export function getDevicemanage(deviceId) {
  return request({
    url: '/manage/devicemanage/' + deviceId,
    method: 'get'
  })
}

// 新增器械信息
export function addDevicemanage(data) {
  return request({
    url: '/manage/devicemanage',
    method: 'post',
    data: data
  })
}

// 修改器械信息
export function updateDevicemanage(data) {
  return request({
    url: '/manage/devicemanage',
    method: 'put',
    data: data
  })
}

// 删除器械信息
export function delDevicemanage(deviceId) {
  return request({
    url: '/manage/devicemanage/' + deviceId,
    method: 'delete'
  })
}
